﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Selector.aspx.vb" Inherits="Selector" %>

<%@ Register Assembly="ISNet.WebUI.WebTreeView" Namespace="ISNet.WebUI.WebTreeView" TagPrefix="ISWebTreeView" %>
<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
        //var exp = '0';
        //function WebTreeView3_Expand() {
        //    exp = '1';
        //    var combo = ISGetObject("WebCombo3");
        //    combo.SetFocus();
        //    combo.ShowDropDown();
        //}
        //function WebTreeView3_Collapse() {
        //    exp = '1';
        //    var combo = ISGetObject("WebCombo3");
        //    combo.SetFocus();
        //    combo.ShowDropDown();
        //}
        //function WebCombo3_Hide() {
        //    if (exp == '1') {
        //        exp = '0';
        //        var combo = ISGetObject("WebCombo3");
        //        combo.SetFocus();
        //        combo.ShowDropDown();
        //    }
        //}
    </script>
    <div style="width: 100%;">
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <center>
    <table style="text-align:left;" cellpadding="3">
        <tr>
            <td>ปี
    <asp:TextBox ID="YearTxt" runat="server" Width="74px" ReadOnly="true" Enabled="false"></asp:TextBox></td>
            <td >
                หน่วยงาน&nbsp;
                </td >
                <td >
                <ISWebCombo:WebCombo ID="WebCombo3" runat="server" UseDefaultStyle="True" Width="350px" DataTextField="pathname" DataValueField="Fundcenter_FundcenterCode" AllowWildCardSearch="true" DropDownRows="100000">
                    <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                    </LayoutSettings>
                    <Columns>
                                    <ISWebCombo:WebComboColumn BaseFieldName="pathname" Name="pathname" HeaderText=" " Width="350px" />
                                    <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ Fundcenter" Width="0px" Hidden="true" RenderOnHidden="true" />
                    </Columns>
                </ISWebCombo:WebCombo>
                    <asp:TextBox runat="server" ID="FCTRName" Text=""  Width="350px" Visible="false" ReadOnly="true"></asp:TextBox>
                    <asp:Label runat="server" ID="FCTRcode" Text="0" Visible ="false"></asp:Label>
                &nbsp;</td>
            <td>Version
    <asp:TextBox ID="VersionTxt" runat="server" Width="45px"></asp:TextBox>
                
            </td>
            <td><asp:Button ID="Button1" runat="server" Text="ตกลง"></asp:Button></td>
        </tr>
        <tr>
            <td>
            </td>
             <td>
            </td>
            <td>                
            </td>
            <td colspan="2">
                <asp:CheckBox ID="CheckBox1" runat="server" Text="รวม Fund Center ใต้สังกัด" Checked="true"></asp:CheckBox>
            </td>
        </tr>
    </table>
</center>
        <div style="display: none;">
            <ISWebTreeView:WebTreeView ID="WebTreeView3" runat="server" Height="265px" Width="335px">
                <NodeSettings EnableAnimation="True" />

            </ISWebTreeView:WebTreeView>
        </div>
    </div>
    <%=scripttext%>
</asp:Content>

